﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace ProjectMillionaire.TileEngine
{
    public class Engine
    {
        #region Fields and Properties
        
static int tileWidth;
static int tileHeight;

public static int TileWidth
{
    get { return tileWidth; }
}
public static int TileHeight
{
    get { return tileHeight; }
}


        #endregion
        #region Constructors
            public Engine(int tileWidth, int tileHeight)
            {
                Engine.tileWidth = tileWidth;
                Engine.tileHeight = tileHeight;
                
            }
        #endregion

        #region Method
        public static Point VectorToCell(Vector2 position)
        {
            return new Point((int)position.X / tileWidth, (int)position.Y / tileHeight);
        }
        #endregion
    }
}
